{ //=========Macro generated from canvas: sigrphi1/sigrphi1 //========= (Wed Feb 25 11:14:16 2009) by ROOT version5.14/00f TCanvas *sigrphi1 = new TCanvas("sigrphi1", "sigrphi1",18,56,800,800); gStyle->SetOptStat(0); sigrphi1->Range(-0.1604,0.50969,0.9596,1.56125); sigrphi1->SetFillColor(10); sigrphi1->SetBorderMode(0); sigrphi1->SetBorderSize(2); sigrphi1->SetTickx(); sigrphi1->SetTicky(); sigrphi1->SetLeftMargin(0.17); sigrphi1->SetRightMargin(0.08); sigrphi1->SetTopMargin(0.08); sigrphi1->SetBottomMargin(0.18); sigrphi1->SetFrameLineWidth(2); sigrphi1->SetFrameBorderMode(0); sigrphi1->SetFrameLineWidth(2); sigrphi1->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(8); gre->SetName("gldapr08"); gre->SetTitle(""); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.1,10.8777); gre->SetPointError(0,0,0.191366); gre->SetPoint(1,0.2,11.0325); gre->SetPointError(1,0,0.176858); gre->SetPoint(2,0.3,11.9078); gre->SetPointError(2,0,0.194435); gre->SetPoint(3,0.4,12.4547); gre->SetPointError(3,0,0.182012); gre->SetPoint(4,0.5,13.0292); gre->SetPointError(4,0,0.201599); gre->SetPoint(5,0.6,14.5427); gre->SetPointError(5,0,0.20224); gre->SetPoint(6,0.7,17.573); gre->SetPointError(6,0,0.253432); gre->SetPoint(7,0.8,22.7594); gre->SetPointError(7,0,0.339616); TH1 *gldapr081 = new TH1F("gldapr081","",100,0.03,0.87); gldapr081->SetMinimum(5); gldapr081->SetMaximum(30); gldapr081->SetDirectory(0); gldapr081->SetStats(0); gldapr081->SetLineWidth(2); gldapr081->SetMarkerStyle(20); gldapr081->SetMarkerSize(0.7); gldapr081->GetXaxis()->SetTitle("cos#theta"); gldapr081->GetXaxis()->SetNdivisions(506); gldapr081->GetXaxis()->SetLabelFont(42); gldapr081->GetXaxis()->SetLabelOffset(0.015); gldapr081->GetXaxis()->SetLabelSize(0.06); gldapr081->GetXaxis()->SetTitleSize(0.07); gldapr081->GetXaxis()->SetTitleFont(42); gldapr081->GetYaxis()->SetTitle("#sigma_{r#phi}/#mum"); gldapr081->GetYaxis()->SetNdivisions(506); gldapr081->GetYaxis()->SetLabelFont(42); gldapr081->GetYaxis()->SetLabelOffset(0.015); gldapr081->GetYaxis()->SetLabelSize(0.06); gldapr081->GetYaxis()->SetTitleSize(0.07); gldapr081->GetYaxis()->SetTitleOffset(1.2); gldapr081->GetYaxis()->SetTitleFont(42); gldapr081->GetZaxis()->SetLabelFont(42); gldapr081->GetZaxis()->SetLabelOffset(0.015); gldapr081->GetZaxis()->SetLabelSize(0.06); gldapr081->GetZaxis()->SetTitleSize(0.07); gldapr081->GetZaxis()->SetTitleOffset(1.1); gldapr081->GetZaxis()->SetTitleFont(42); gre->SetHistogram(gldapr081); gre->Draw("pla"); gre = new TGraphErrors(8); gre->SetName("gldprim"); gre->SetTitle("gldprim"); gre->SetFillColor(1); gre->SetLineColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(1); gre->SetMarkerStyle(21); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.1,10.0467); gre->SetPointError(0,0,0.151355); gre->SetPoint(1,0.2,10.561); gre->SetPointError(1,0,0.160713); gre->SetPoint(2,0.3,10.6536); gre->SetPointError(2,0,0.162008); gre->SetPoint(3,0.4,11.5566); gre->SetPointError(3,0,0.186444); gre->SetPoint(4,0.5,12.5181); gre->SetPointError(4,0,0.200478); gre->SetPoint(5,0.6,13.7703); gre->SetPointError(5,0,0.215726); gre->SetPoint(6,0.7,16.2779); gre->SetPointError(6,0,0.245955); gre->SetPoint(7,0.8,20.8344); gre->SetPointError(7,0,0.327031); gre->Draw("pl"); gre = new TGraphErrors(8); gre->SetName("j4ldc"); gre->SetTitle("j4ldc"); gre->SetFillColor(1); gre->SetLineColor(4); gre->SetLineWidth(2); gre->SetMarkerColor(4); gre->SetMarkerStyle(24); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.1,9.6963); gre->SetPointError(0,0,0.144029); gre->SetPoint(1,0.2,10.0717); gre->SetPointError(1,0,0.157503); gre->SetPoint(2,0.3,10.228); gre->SetPointError(2,0,0.153351); gre->SetPoint(3,0.4,10.7509); gre->SetPointError(3,0,0.165567); gre->SetPoint(4,0.5,11.6555); gre->SetPointError(4,0,0.185295); gre->SetPoint(5,0.6,12.9752); gre->SetPointError(5,0,0.200265); gre->SetPoint(6,0.7,14.9614); gre->SetPointError(6,0,0.219386); gre->SetPoint(7,0.8,19.5066); gre->SetPointError(7,0,0.300934); gre->Draw("pl"); TLegend *leg = new TLegend(0.28,0.71,0.49,0.9,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.043); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL","GLD","ple"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLDPrime","ple"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLD4LDC","ple"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); TLegend *leg1 = new TLegend(0.51,0.69,0.61,0.89,NULL,"brNDC"); // leg->SetTextFont(22); leg1->SetTextSize(0.032); leg1->SetLineColor(1); leg1->SetLineStyle(1); leg1->SetFillColor(1); leg1->SetFillStyle(0); leg1->SetBorderSize(0); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.0 T, R_{min}= 17.5 mm)",""); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.5 T, R_{min}= 16 mm)",""); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=4.0 T, R_{min}= 15 mm)",""); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg1->Draw(); TLatex * tex = new TLatex(0.065,27.5,"c)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); sigrphi1->Modified(); sigrphi1->cd(); sigrphi1->SetSelected(sigrphi1); sigrphi1->SaveAs("rphi.eps"); sigrphi1->SaveAs("rphi.gif"); }